package com.tsd.core.openweixin.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.tsd.core.utils.HlpUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * @author mayun
 */
public class WechatMessageResult4Media implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 717806721560532034L;
    @Expose
    @SerializedName("errcode")
    private String errcode;
    @Expose
    @SerializedName("errmsg")
    private String errmsg;
    private String type;
    private String media_id;
    private Date created_at;

    public boolean isSuccess() {
        return !HlpUtils.isEmpty(getMedia_id());
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMedia_id() {
        return media_id;
    }

    public void setMedia_id(String media_id) {
        this.media_id = media_id;
    }

    public Date getCreated_at() {
        return created_at;
    }

    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }


}
